package cn.rongdao.jrkabao.ui.IdentificationVerificate.IdentificationWithValidationItem.status;


import com.mifengkong.frtools.http.request.callback.FRBaseObserver;

import cn.rongdao.jrkabao.base.BaseAutoFinishActivity;
import cn.rongdao.jrkabao.bean.loan.ApplySuccessBean;
import cn.rongdao.jrkabao.constant.InfoConstant;
import cn.rongdao.jrkabao.model.loan.VerifyStatusInfoModel;

/**
 * Created by jiangyongxing on 2017/9/22.
 * 描述：
 */

public abstract class StatusBaseActivity extends BaseAutoFinishActivity {

    protected String mCode;
    protected String mCateId;

    @Override
    protected void initView() {
        mCateId = getIntent().getStringExtra(InfoConstant.CATE_ID);
        mCode = getIntent().getStringExtra("code");
        getStatusData();
    }

    private void getStatusData() {
        VerifyStatusInfoModel.getInstance().execute(mCateId, mCode, new FRBaseObserver<ApplySuccessBean>(this) {
            @Override
            protected void onBaseNext(ApplySuccessBean data) {
                parseData(data);
            }
        });
    }

    protected abstract void parseData(ApplySuccessBean data);

}
